﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebBuddy.Ajax
{
    public struct AjaxOptions<TDataType>
    {
        /// <summary>
        /// Callback when we get your data
        /// </summary>
        public GetResponseCallback<TDataType> Callback
        {
            get;
            set;
        }


        /// <summary>
        /// Callback when we dont get your data (i.e. things fail)
        /// </summary>
        public AjaxFailure FailureCallback { get; set; }


        /// <summary>
        /// Any state information
        /// </summary>
        public object State { get; set; }
    }
}
